package com.cn.demo4.thread.priority;

/**
 * 严重优先级的随机性，对优先级注释，或者将优先级设置相近看打印结果的变化
 */
public class TestRandom {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            MyThreadThree myThreadThree = new MyThreadThree();
// myThreadThree.setPriority(5);
            myThreadThree.start();
            MyThreadFour myThreadFour = new MyThreadFour();
// myThreadFour.setPriority(6);
            myThreadFour.start();
        }
    }
}